package cn.tedu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.jsp.PageContext;

@Controller
public class ForwardController {

    @RequestMapping(value = "/{fpath}.action", produces = {"text/javascript;charset=UTF-8"})
    public String forward(@PathVariable String fpath) {
        return "forward:/WEB-INF/jsp/" + fpath + ".jsp";
    }

}
